package service.impl;

import dao.HeaderDao;
import dao.impl.HeaderDaoImpl;
import model.Header;
import service.HeaderService;

import java.util.List;

/**
 * @Description:
 * @Author one world
 * @Date 2020/9/23 0023 12:32
 */
public class HeaderServiceImpl implements HeaderService {
    HeaderDao dao = new HeaderDaoImpl();
    @Override
    public List<Header> findAll() {
        return dao.findAll();
    }

    @Override
    public Header findById(int id) {
        return dao.findByPK(id);
    }

    @Override
    public boolean add(Header header) {
        return dao.add(header);
    }

    @Override
    public boolean del(int id) {
        return dao.delByPK(id);
    }

    @Override
    public boolean update(Header header) {
        return dao.update(header);
    }
}
